const Koa = require('koa')
const { koaBody } = require('koa-body')
const bodyparser = require('koa-bodyparser')
const cors = require('@koa/cors')
const userRouter = require('./router/index')

let app = new Koa()


app.use(cors())
app.use(koaBody({
    multipart: true
}))
app.use(bodyparser())
app.use(userRouter)



app.listen(9000, () => {
    console.log('9000端口启动成功');
})

